﻿using System.Collections.Generic;
using System.Threading.Tasks;
using SmartPlant.Model;
using SmartPlant.Model.Biz;

namespace SmartPlant.Services.Interfaces
{
    public interface ILoopService
    {
        Task<Loop> GetLoopAsync(decimal proId, string loopId);

        Task<List<Loop>> GetUnitLoopsAsync(decimal proId, string unitId, string select = "loop_id,loop_name", string orderby = "loop_name");
 
        Task<RESTfulResult<decimal?>> CreateLoopAsync(decimal proId, decimal unitId,string loopName,decimal copyLoopId);
        Task<bool> UpdateLoopAsync(decimal proId, Loop loopItem);
        Task<bool> DeleteLoopAsync(decimal proId,string objid);
    }
}
